package com.rightsidetech.system.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.service.IService;
import com.rightsidetech.system.dtos.request.AddLevelRuleReq;
import com.rightsidetech.system.dtos.request.UpdateLevelRuleReq;
import com.rightsidetech.system.dtos.response.LevelRuleResp;
import com.rightsidetech.commom.base.PageRequest;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.dtos.response.LevelSearchResp;
import com.rightsidetech.system.entity.SysLevelRule;

import java.util.List;

/**
 * @Package: com.rightsidetech.system.service
 * @ClassName: LecelRuleService
 * @Author: yinj
 * @CreateTime: 2021/10/20 10:45
 */
public interface LevelRuleService extends IService<SysLevelRule,Long> {
    ResponseData<PageInfo<LevelRuleResp>> page(PageRequest request);

    ResponseData add(AddLevelRuleReq req,Long sysUserInfoId);

    ResponseData update(UpdateLevelRuleReq req, Long sysUserInfoId);

    ResponseData del(UpdateLevelRuleReq req, Long sysUserInfoId);

    SysLevelRule findLevelRuleByOrderNum(Long orderNum);

    ResponseData<List<LevelSearchResp>> search(Byte level);
}
